// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}


// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// button
.el-button [class*=fa-] + span {
  margin-left: 5px;
}

// table
.el-table {
  border-radius: 4px;

  .el-table__fixed-body-wrapper {
    top: 45px !important;
  }

  th, td {
    padding: 5px 0 !important;
  }

  .el-table__fixed-header-wrapper th, .el-table__header-wrapper th {
    word-break: break-word;
    background-color: #f8f8f9;
    color: #515a6e;
    height: 40px;
    font-size: 13px;
  }

  td.cell div {
    box-sizing: border-box;
  }
}

// tree
.el-tree {
  .el-tree-node {
    margin-top: 5px;

    .el-tree-node__content {
      height: 30px;
      border-radius: 4px;
    }
  }
}

// el-dialog
.el-dialog {
  display: flex;
  margin-top: 5% !important;
  max-height: 85%;
  overflow: hidden;
  flex-direction: column;
  border-radius: 10px;

  .el-dialog__header {
    padding: 20px;

    .el-dialog__title {
      font-size: 16px;
      font-weight: bold;
    }
  }

  .el-dialog__body {
    padding: 0 20px;
    z-index: 1;
    overflow: hidden;
    overflow-y: auto;
  }

  .el-dialog__footer {
    padding: 20px;
  }
}

@media (max-width: 800px) {
  /* 当屏幕宽度小于等于800px时 */
  .el-dialog {
    width: 90% !important;
  }
}

// 修复 el-date-picker CSS 样式
.el-range-separator {
  box-sizing: content-box;
}
